package stringss;

public class strrvs {
	public static void main(String[] args){
		
		 String s1="abcdef";
	      String rev = new StringBuffer(s1).
	      reverse().toString();
	      System.out.println("String before reverse:"+s1);
	      System.out.println("String after reverse:"+rev);
	   }
	

}
